<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我们的宿舍 - 舍友介绍</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
        }

        header {
            background-color: #333;
            color: white;
            padding: 10px 0;
            text-align: center;
        }

        nav {
            background-color: #444;
            padding: 10px;
            text-align: center;
        }

        nav a {
            color: white;
            margin: 0 15px;
            text-decoration: none;
        }

        nav a:hover {
            text-decoration: underline;
        }

        .container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            padding: 20px;
        }

        .card {
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            margin: 15px;
            width: 300px;
            overflow: hidden;
            text-align: center;
            transition: transform 0.3s ease;
        }

        .card:hover {
            transform: translateY(-10px);
        }

        .card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .card h2 {
            margin: 15px 0 10px;
            color: #333;
        }

        .card p {
            color: #666;
            padding: 0 15px 15px;
            font-size: 14px;
            line-height: 1.5;
        }

        footer {
            background-color: #333;
            color: white;
            text-align: center;
            padding: 10px 0;
            position: fixed;
            width: 100%;
            bottom: 0;
        }
    </style>
</head>

<body>
    <header>
        <h1>舍友介绍</h1>
    </header>
    <nav>
        <a href="/">首页</a>
        <a href="/roommates">舍友介绍</a>
        <a href="/activities">宿舍活动</a>
        <a href="/gallery">照片墙</a>
        <a href="/contact">联系我们</a>
    </nav>
    <div class="container">
        <div class="card">
            <img src="../static/img/img1.jpg" alt="舍友 1">
            <h2>秦文鹏</h2>
            
        </div>
        <div class="card">
            <img src="../static/img/img2.jpg" alt="舍友 2">
            <h2>何传斌</h2>
            
        </div>
        <div class="card">
            <img src="../static/img/img3.jpg" alt="舍友 3">
            <h2>符湛</h2>
            
        </div>
        <div class="card">
            <img src="../static/img/img4.jpg" alt="舍友 4">
            <h2>陈金桃</h2>
           
        </div>
        <div class="card">
            <img src="../static/img/img5.jpg" alt="舍友 5">
            <h2>李崇杰</h2>
           
        </div>
    </div>
    <footer>
        <p>&copy; 5719我们的宿舍。</p>
    </footer>
</body>

</html>